package com.tiantian.app.activities;

import com.infindo.frame.util.ScreenManager;
import com.tiantian.app.R;

import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
 
 /** 
 * @author  William.Chen
 * @version 创建时间：2013-3-13 下午08:24:44 
 * 类说明 
 */
public class PageConnectionHomeActivity extends SuperActivity {

	/* 
	 * @see com.tiantian.app.activities.SuperActivity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_connection_home);
		onResetUI();
		
	}
	/* 
	 * @see com.tiantian.app.activities.SuperActivity#callback(java.lang.String, int, java.lang.Object)
	 */
	@Override
	public void callback(String type, int position, Object obj) {
		// TODO Auto-generated method stub

	}

	/* 
	 * @see com.tiantian.app.activities.SuperActivity#findView()
	 */
	@Override
	public void findView() {
		// TODO Auto-generated method stub
		superTitle = (TextView)findViewById(R.id.superTitle);
		superTitle.setText("联络");
		
	   menuHome = (Button)findViewById(R.id.menuHome);
	   menuAnnounce = (Button)findViewById(R.id.menuAnnounce);
	   menuConnection = (Button)findViewById(R.id.menuConnection);
	   menuMore = (Button)findViewById(R.id.menuMore);
	   
	   menuConnection.setBackgroundResource(R.drawable.icon_select);
	   Drawable top = getResources().getDrawable(R.drawable.icon_connection_b);
	   menuConnection.setCompoundDrawablesWithIntrinsicBounds(null, top, null, null);
	}

	/* 
	 * @see com.tiantian.app.activities.SuperActivity#initData()
	 */
	@Override
	public void initData() {
		// TODO Auto-generated method stub

	}

	/* 
	 * @see com.tiantian.app.activities.SuperActivity#onResetUI()
	 */
	@Override
	public void onResetUI() {
		// TODO Auto-generated method stub
		findView();
		setListener();
		initData();

	}

	/* 
	 * @see com.tiantian.app.activities.SuperActivity#setListener()
	 */
	@Override
	public void setListener() {
		// TODO Auto-generated method stub
       menuHome.setOnClickListener(this);
       menuAnnounce.setOnClickListener(this);
       menuMore.setOnClickListener(this);
       
	}
	
	/* 
	 * @see com.tiantian.app.activities.SuperActivity#onClick(android.view.View)
	 */
	@Override
	public void onClick(View view) {
		// TODO Auto-generated method stub
		super.onClick(view);
	}

}
